﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Goods.aspx.cs" Inherits="Web.Goods" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style>
        *{
    margin:0px;
    padding:0px;
}
 #GridView1{
    
     margin-top:5%;
 }
        .da{

    margin-top:2%;
    margin-left:2%;
}
.da1 {
    margin-left: 5%;
    margin-top: 2%;
}
 #iamge{
             margin-left:40%;
            margin-top:-2.9%;
        }
 .Label1 {
    margin-left: 7%;
    margin-top: 1%;
}
 #oi{
    margin-left:50%;
    margin-top:-3%;
}
  .p2{
            padding-left: 10px; height: 38px; min-width: 274px; line-height: 38px; border: 1px solid black;  background-color: #fff;  border-radius: 2px;
        }
  .Label2{
    margin-left:12%;
      margin-top: 2%;
}
.syy{
    margin-left:12%;
}
.tiaozhuan{
    margin-left:12%;
}
.wy{
    margin-left:5%;
}
    </style>
    <h1 class="da">用户信息</h1>
    <p class="da1">
        <asp:TextBox  ID="TextBox1" runat="server" Height="38px" placeholder="请输入需要搜索的商品！" Width="533px"></asp:TextBox>

       
        <div id="iamge">
            <asp:ImageButton ImageUrl="~/Content/搜索.png" ID="ImageButton1" runat="server"  CssClass="auto-style1" Height="38px" Width="33px" OnClick="ImageButton1_Click"/>
            
        </div>
        </p>
    <p id="oi">
             <asp:Label ID="Label2" runat="server" Text="商品类型:" Font-Size="Medium"></asp:Label>
           <asp:DropDownList ID="DropDownList1" CssClass="p2" runat="server"></asp:DropDownList>
        </p>
      <div id="GridView1">
          
      <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" Height="290px" Width="1418px" OnRowDeleting="GridView2_RowDeleting" OnRowCancelingEdit="GridView2_RowCancelingEdit" OnRowEditing="GridView2_RowEditing" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" OnRowUpdating="GridView2_RowUpdating" AllowPaging="True"  PageSize="5">
          <AlternatingRowStyle BackColor="White" />
          <Columns>
              <asp:BoundField DataField="GoodsID" HeaderText="商品编号" />
              <asp:BoundField DataField="GoodsName" HeaderText="商品名称" />
              <asp:BoundField DataField="GoodsTypeName" HeaderText="商品类别" />
              <asp:BoundField DataField="GoodsPrice" HeaderText="商品价格" />
              <asp:BoundField DataField="GoodsDesc" HeaderText="商品简介" />
              <asp:BoundField DataField="GoodsNum" HeaderText="商品数量" />
              <asp:BoundField DataField="CreateTime" HeaderText="入库时间" />
              <asp:TemplateField HeaderText="操作">
     <ItemTemplate>
          <asp:Button runat ="server"  CommandName ="Delete" HeaderText="操作" ForeColor="Black" Height="40px" Width="100px"  OnClientClick ="return confirm('您确认要删除吗？')" Text ="删除" />
     </ItemTemplate>
</asp:TemplateField>
             
              <asp:CommandField ButtonType="Button" HeaderText="操作" ShowEditButton="True" ShowHeader="True">
              <ControlStyle ForeColor="Black" Height="40px" Width="70px" />
              </asp:CommandField>
          </Columns>
          <FooterStyle BackColor="#CCCC99" />
          <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
          <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
          <RowStyle BackColor="#F7F7DE" />
          <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
          <SortedAscendingCellStyle BackColor="#FBFBF2" />
          <SortedAscendingHeaderStyle BackColor="#848384" />
          <SortedDescendingCellStyle BackColor="#EAEAD3" />
          <SortedDescendingHeaderStyle BackColor="#575357" />
          </asp:GridView>
      </div>
      <p class="Label1">
         
              <asp:Label ID="Label1" runat="server" Text="" ForeColor="Red"></asp:Label>
     
        </p>
     <p class="Label2">
              
              <asp:Button ID="Button1" CssClass="sy" runat="server" Text="首页" Width="69px" OnClick="Button1_Click" />

              <asp:Button ID="Button2"  CssClass="syy" runat="server" Text="上一页" Width="69px"   OnClick="Button2_Click"/>
            
                 <asp:Label ID="Label6"  CssClass="djy"  runat="server" Text="Label" ></asp:Label>
                <asp:Label ID="Label3" runat="server"   Text="/"></asp:Label>
              <asp:Label ID="Label8" runat="server"  CssClass="zongye" Text="Label"></asp:Label>
                 <asp:Button ID="Button5"  CssClass="" runat="server" Text="下一页" Width="69px" OnClick="Button5_Click" />
          
              
             
                    <asp:Label ID="Label9" runat="server"  CssClass="tiaozhuan" Text="请输入你跳转的页数:"></asp:Label>
              <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
              <asp:Button ID="Button3" runat="server" Text="跳转" Width="69px" OnClick="Button3_Click" />
           

              <asp:Button ID="Button4" CssClass="wy" runat="server" Text="尾页"  Width="85px" Height="33px" OnClick="Button4_Click"/>
     
        </p>
</asp:Content>
